#!/bin/bash

cd ..
cd alcor.build
cd linux

pushd .
cd debug
ccmake ../../../alcor.cmake -DCMAKE_BUILD_TYPE:STRING=Debug -G "Unix Makefiles"

popd
cd release
cp ../debug/CMakeCache.txt

ccmake ../../../alcor.cmake -DCMAKE_BUILD_TYPE:STRING=Release -G "Unix Makefiles"
